<?php
class Uf extends AppModel {

	var $name = 'Uf';
	var $primaryKey = 'id_uf';
	var $validate = array(
		'id_pais' => array('notempty'),
		'nome' => array('notempty'),
		'sigla' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Pais' => array(
			'className' => 'Pais',
			'foreignKey' => 'id_pais',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Cidade' => array(
			'className' => 'Cidade',
			'foreignKey' => 'id_uf',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
?>